package edu.uoc.tdp.pac4.beans;

import java.io.Serializable;
import java.util.Date;

public class Attendance implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private int attendanceId;

	private Date attendanceDate;

	private Date startTime;

	private Date endTime;

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	private int totalAttendance;

	private int totalNoAttendance;

	private int groupid;

	private AttendanceStudent attendanceStudent;

	public Attendance(int groupid) {
		super();
		this.groupid = groupid;
	}

	public Attendance() {
	}

	public Attendance(int asistid, Date date, Date startTime, int grupoid) {
		this.attendanceId = asistid;
		this.attendanceDate = date;
		this.startTime = startTime;
		this.groupid = grupoid;
		
	}

	public int getAttendanceId() {
		return attendanceId;
	}

	public void setAttendanceId(int attendanceId) {
		this.attendanceId = attendanceId;
	}

	public Date getAttendanceDate() {
		return attendanceDate;
	}

	public void setAttendanceDate(Date attendanceDate) {
		this.attendanceDate = attendanceDate;
	}

	public int getTotalAttendance() {
		return totalAttendance;
	}

	public void setTotalAttendance(int totalAttendance) {
		this.totalAttendance = totalAttendance;
	}

	public int getTotalNoAttendance() {
		return totalNoAttendance;
	}

	public void setTotalNoAttendance(int totalNoAttendance) {
		this.totalNoAttendance = totalNoAttendance;
	}

	public int getGroupid() {
		return groupid;
	}

	public void setGroupid(int groupid) {
		this.groupid = groupid;
	}

	public AttendanceStudent getAttendanceStudent() {
		return attendanceStudent;
	}

	public void setAttendanceStudent(AttendanceStudent attendanceStudent) {
		this.attendanceStudent = attendanceStudent;
	}

}
